package com.tsd.common.dao;

import com.tsd.common.entity.CommonStorage;
import com.tsd.common.entity.CommonStorageExt;
import com.tsd.core.vo.PageBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 描述：CommonStorageMapper
 *
 * @author Hillpool
 * @date 2022/09/15 17:13:17
 */
public interface CommonStorageMapper {

    CommonStorage selectByPrimaryKey(Integer id);

    CommonStorageExt selectBySid(String sid);

    int deleteByPrimaryKey(Integer id);

    int insert(CommonStorage record);

    int insertSelective(CommonStorage record);

    int insertList(@Param("list") List<CommonStorageExt> list);

    int updateByPrimaryKey(CommonStorage record);

    int updateByPrimaryKeySelective(CommonStorage record);

    int updateList(@Param("list") List<CommonStorageExt> list);

    List<CommonStorageExt> selectByEntity(CommonStorageExt record);

    List<CommonStorageExt> selectByPage(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<CommonStorageExt> selectCount1Page(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<CommonStorageExt> selectByParams(@Param("params") Map<String, Object> params);

    CommonStorageExt selectByKey(@Param("key") String key);
}